package main

import (
	"ddnser/common/logger"
	"ddnser/controller"
	"ddnser/service"
	"ddnser/settings"
)

func main() {
	mon := service.NewIpMonService()
	updator := service.NewDdnsService()
	noti := service.NewAllNotification()
	ddnser := controller.NewDdnserController(mon, updator, noti)
	// ddnser.Updator()
	ddnser.Scheduler()
}

func init() {
	settings.InitSetting()
	conf := settings.GetAppConf()
	logger.InitLogger(conf.LogConf.Path, conf.LogConf.Level)
}
